<?php

namespace app\admin\validate;

use think\Validate;

class HotSearch extends Validate
{
    protected $rule = [
        'keyword'  => 'require|max:20',
    ];

    protected $message = [
        'keyword.require' => '热搜关键词不能为空',
        'keyword.max'     => '热搜关键词最多不能超过20个字符',
    ];
}